package javabean.user;

import java.util.List;

public interface UserDAO {
	//验证登陆
	public boolean isLogin(User user) throws Exception;
	//注册
	public int register(User user) throws Exception;
	//更新用户活跃度
	public boolean updateActivity(User user) throws Exception ;
	//更新贡献值
	public boolean updateContribution(String uid) throws Exception;
	//根据uid查询uname
	public String queryNameByUidOrEmail(String key) throws Exception ;
	//根据uid查询所有用户信息
	public List<User> queryAllByUidOrEmail(String key) throws Exception ;	
	//修改基本资料
	public boolean edit(User user) throws Exception;
	//修改密码
	public int changePassword(String uid,String oldpsw,String psw) throws Exception;
}
